//
//  XHRScrollPictureView.h
//  CollectionView实现无限分页
//
//  Created by 胥鸿儒 on 16/5/15.
//  Copyright © 2016年 xuhongru. All rights reserved.
//

#import <UIKit/UIKit.h>
@class XHRScrollPictureView;

@protocol XHRScrollPictureViewDelegate <NSObject>

@required
- (NSArray *)contentOfPictureInScrollPictureView;
@optional
- (CGFloat)timeIntervalOfPagingToNextPageInScrollPictureView:(XHRScrollPictureView *)scrollPictureView;

- (UIColor *)currentColorOfPageControlInScrollPictureView:(XHRScrollPictureView *)scrollPictureView;

- (UIColor *)otherColorOfPageControlInScrollPictureView:(XHRScrollPictureView *)scrollPictureView;

- (BOOL)scrollPictureViewShouldAutoScroll:(XHRScrollPictureView *)scrollPictureView;//default is YES;

@end

@interface XHRScrollPictureView : UIView

@property(nonatomic,weak)id<XHRScrollPictureViewDelegate> delegate;


@property(nonatomic,assign,readonly)CGFloat timeInterval;


@property(nonatomic,assign,getter=isShowPageControl)BOOL showPageControl;//default is YES;



+ (instancetype)scrollPictureViewWithFrame:(CGRect)frame;

@end
